package com.owc.service;

import com.owc.common.enums.FileTypeEnum;
import com.owc.domain.entity.OssResult;
import org.apache.tomcat.util.http.fileupload.FileUploadException;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * @Author xiaom
 * @Date 2020/2/28 12:19
 * @Version 1.0.0
 * @Description <>
 **/
public interface UploadService {

    OssResult uploadImage(String filePath) throws FileUploadException;

    OssResult upload(MultipartFile file, FileTypeEnum fileType) throws IOException, FileUploadException;

}
